package com.woke.bean;

import java.util.List;

import com.woke.dao.ChouJiang;
import com.woke.dao.Customer;
import com.woke.dao.User;
import com.woke.dao.WokeDao;

public class ChouJBean {
	public static List getChouJList(String sql) {
		return ChouJiang.getData(sql);
	}
	
	public static List getChouJList1() {
		String sql="select * from choujiang";
		return ChouJiang.getData(sql);
	}
	
	public static void updateChouJ(String id,String cjname) {
		String sql = "update choujiang set cjname='" + cjname + "' where id=" + id;
		WokeDao.updateMySqlData(sql);
	}
	
	public static void addChouJ(String cjname) {
		String sql = "insert into choujiang(cjname) values('" + cjname + "')";
		WokeDao.updateMySqlData(sql);
	}
	
	public static void deleteChouJ(String id) {
		String sql = "delete from choujiang where id=" + id;
		WokeDao.updateMySqlData(sql);
	}
}
